//
//  MainBaseViewController.m
//  Beautis
//
//  Created by 吴涛 on 15/8/9.
//  Copyright (c) 2015年 吴涛. All rights reserved.
//

#import "MainBaseViewController.h"
#import "Header.h"
@interface MainBaseViewController ()

@end

@implementation MainBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self createNavi];
}

- (void)createNavi{
    _naviView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 68)];
    _naviView.backgroundColor = [UIColor whiteColor];
    UIView *verticalLine = [[UIView alloc] initWithFrame:CGRectMake(50, 20, 1, 50)];
    verticalLine.backgroundColor = [UIColor lightGrayColor];
    [_naviView addSubview:verticalLine];
    
    UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 70, SCREEN_WIDTH, 1)];
    line.backgroundColor = [UIColor lightGrayColor];
    [_naviView addSubview:line];
    
    _button = [UIButton buttonWithType:UIButtonTypeCustom];
    _button.frame = CGRectMake(10, 30, 30, 30);
    _button.backgroundColor = [UIColor redColor];
    [_button setTitle:@"三" forState:UIControlStateNormal];
    [_button addTarget:self action:@selector(ChangeFrameButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    [_naviView addSubview:_button];
    
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 30, 100, 30)];
    _titleLabel.text = @"标题";
    _titleLabel.font = [UIFont systemFontOfSize:14];
    [_naviView addSubview:_titleLabel];
    [self.view addSubview:_naviView];
    
}

- (void)ChangeFrameButtonAction:(UIButton *)sender{
    [_rootRightVC changeFrame];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
